[Root] / Xceed.Zip Assembly / Xceed.Zip Namespace / QuickZip Class / GetZipContents Method / GetZipContents(String,String,Boolean,String[]) Method
The fully-qualified path and name of the zip file. Cannot be empty and must exist.
The password that will be used to decrypt the files.
Boolean value indicating if files contained within sub-folders should be extracted from the zip file.
The string masks that are used to filter the files.


In This Topic
    GetZipContents(String,String,Boolean,String[]) Method
    In This Topic
    Gets the contents of the provided zip file.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetZipContents( _
       ByVal zipFileName As String, _
       ByVal decryptionPassword As String, _
       ByVal recursive As Boolean, _
       ByVal ParamArray fileMasks() As String _
    ) As QuickZipItem()
    'Usage
     
    
    Dim zipFileName As String
    Dim decryptionPassword As String
    Dim recursive As Boolean
    Dim fileMasks() As String
    Dim value() As QuickZipItem
     
    value = QuickZip.GetZipContents(zipFileName, decryptionPassword, recursive, fileMasks)

    Parameters

    zipFileName
    The fully-qualified path and name of the zip file. Cannot be empty and must exist.
    decryptionPassword
    The password that will be used to decrypt the files.
    recursive
    Boolean value indicating if files contained within sub-folders should be extracted from the zip file.
    fileMasks
    The string masks that are used to filter the files.

    Return Value

    An array of QuickZipItem objects that contain information regarding each file retrieved.
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Standard: netstandard2.0, netstandard2.1

    .NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also